import Vue from 'vue';
import VueRouter, {RouteConfig} from 'vue-router';
import Canvas from '@views/canvas/Index.vue';

Vue.use(VueRouter);

const routes: Array<RouteConfig> = [
	{
		path: '/',
		name: 'Canvas',
		component: Canvas
	}
];

const router = new VueRouter({
	mode: 'history',
	routes,
	base: '/draw'
});

export default router;
